home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
cpp_libs
/
rjs.lha
/
RJS
/
Transport
/
tests
/
uclient.C
< prev
next >
Wrap
C/C++ Source or Header
|
1991-06-14
|
420b
|
25 lines
#include <iostream.h>
#include <stdio.h>
#include <osfcn.h>
#include <libc.h>
#include "RJS/Transport.h"
void test ()
{
char buffer[10];
RJS_UnixAddress ua("./sock");
RJS_UnixStream server;
server.open(ua,Socket::Client); // open connection to server
server.read(buffer,6); // read from server
cout << "Client read: " << buffer<< endl;
}
int main(int argc, char *argv[])
{
test();
exit(0);
}